package com.lkd.http.controller.vo;


import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

@Data
public class NodeReq {


    @NotNull(message = "名字不能为空")
    @Length(min = 3,max = 20,message = "名字要3-20位")
    private String name	;
    @NotNull(message = "addr不能为空")
    private String addr;
    @NotNull(message = "areaCode不能为空")
    private String areaCode;
    @NotNull(message = "createUserId不能为空")
    private Integer   createUserId;
    @NotNull(message = "regionId不能为空")
    private Long   regionId;
    @NotNull(message = "businessId不能为空")
    private Integer  businessId;
    @NotNull(message = "ownerId不能为空")
    private Integer   ownerId;
    @NotNull(message = "ownerName不能为空")
    private String  ownerName;

}
